unit EstoqueFr;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
  DBGrids, ExtCtrls, StdCtrls, EditBtn, Buttons, ComCtrls, DBCtrls, MainFr, DataRecord;

type

  { TEstoqueMainFrame }

  TEstoqueMainFrame = class(TMainFrame)
    ToolBar1: TToolBar;
    ToolButton1: TToolButton;
    ToolButton10: TToolButton;
    ToolButton11: TToolButton;
    ToolButton13: TToolButton;
    ToolButton14: TToolButton;
    ToolButton16: TToolButton;
    ToolButton2: TToolButton;
    ToolButton3: TToolButton;
    ToolButton4: TToolButton;
    ToolButton5: TToolButton;
    ToolButton6: TToolButton;
    ToolButton7: TToolButton;
    ToolButton8: TToolButton;
  procedure SetDataRecord(Data: TDataRecord); override;

  private
    { private declarations }
  public
    { public declarations }
  end;

implementation
uses
  Initializator, MainFm;

{ TEstoqueMainFrame }

procedure TEstoqueMainFrame.SetDataRecord(Data: TDataRecord);
begin
  // Verifica se o frame possui módulo de dados
  if (MainDataModule <> nil) then
    // Atribui um DataRecord ao DataSet
    MainDataModule.SetDataRecord(Data);
end;

initialization
  {$I estoquefr.lrs}

end.

